<template>
  <div class="home">
    <div id="map" class="map"></div>
    <tool-box></tool-box>
  </div>
</template>

<script>
// @ is an alias to /src
import ToolBox from "@/components/ToolBox/index.vue";
import { initMap } from "@/plugins/ol-map/map.js";

export default {
  name: "Home",
  components: {
    ToolBox,
  },
  mounted () {
    const olMap = initMap();
    this.$store.commit('set_OlMap', olMap);
  },
};
</script>

<style lang="scss" scoped>
.home {
  width: 100%;
  height: 100%;

  .map {
    width: 100%;
    height: 100%;
  }
}
</style>
